{include file='../../../PublicView/include.html'}
<script src="/assets/shopadmin/shopmodule/order.js"></script>
<link href="http://g.tbcdn.cn/kissy/k/1.3.2/??calendar/assets/shopadmin/dpl-min.css" rel="stylesheet">
<div class="taeapp admin-table" cellpadding="0" cellspacing="0" border="0">
        <div class="taeapp admin-table-side  tips tips-small tips-notice tips-no-icon">
            <!--菜单部分-->
            <div class="taeapp admin-nav">
			{include file='../../../PublicView/shopleft.html'}
			</div>
            <!--菜单部分-->
        </div>
        <div class="taeapp admin-table-main">
            <!--内容部分-->
				<ul class="breadcrumb">
					<li><a href="/">互动到店</a> <span class="divider">/</span></li>
					<li>抽奖管理 <span class="divider">/</span></li>
					<li class="active">{$title}</li>
				</ul>
		
			<!--内容部分-->
			{include file='../../../PublicView/showmessage.html'}
			<div class="doc-content row">
				<div class="panel show">
				  <div class="panel-header">
					<h3>实时订单服务</h3>
				  </div>
				  <div class="panel-body">
						<div class="row">
						  <div class="span13 doc-content offset3">
							<div class="form-horizontal well">		
								<div class="control-group">
								  <label class="control-label">实时订单{if $status==0}已关闭{else}已开通{/if}：</label>
								  <div class="controls">
								  <span class="control-text">
								  {if $status==0}
								  <img data-ac="open" src="http://img04.taobaocdn.com/imgextra/i4/27390555/TB2.2QaaFXXXXXwXXXXXXXXXXXX_!!27390555-2-tae.png_160x160.jpg" class="curpoint js-zidong">
								  {else}
								  <img data-ac="close" src="http://img01.taobaocdn.com/imgextra/i1/27390555/TB21LY6aFXXXXXKXpXXXXXXXXXX_!!27390555-2-tae.png_160x160.jpg" class="curpoint js-zidong">
								  {/if}
								  </span>
								  </div>
								</div>
							</div>
						</div>
						<div class="span12 doc-content offset3 well" {if $yanchi.s>=4}style="background:#ffb2b2"{/if}>
							  <div class="control-group">
								  <div class="controls">
								  <div class="span12">
									<h3>订单延迟：{$yanchi.t}</h3>
									{if $yanchi.s==1}
									<div class="progress progress-striped">
									  <div class="bar" style="width: 10%;"></div>
									</div>
									{elseif $yanchi.s==2}
									<div class="progress progress-striped">
									  <div class="bar bar-info" style="width: 30%;"></div>
									</div>
									{elseif $yanchi.s==3}
									<div class="progress progress-striped">
									  <div class="bar bar-success" style="width: 50%;"></div>
									</div>
									{elseif $yanchi.s==4}
									<div class="progress progress-striped">
									  <div class="bar bar-warning" style="width: 70%;"></div>
									</div>
									{elseif $yanchi.s>=5}
									<div class="progress progress-striped">
									  <div class="bar bar-danger" style="width: 100%;"></div>
									</div>
									{/if}
								  </div>
								  </div>
								</div>
							  </div>
						</div>
					</div>
				</div>
			</div>
			<!--  //暂停自动导入的开发计划
			<div class=" doc-content row">
			  <form class="panel form-panel form-horizontal" method="post" action="/?a=leadorder_save&c=wins&m=shopadmin">
			<div class="panel">
				<div class="panel-header">
					<h3>自动导入订单</h3>
				  </div>
				<div class="panel-content">
				<div class="control-group ">
					<label class="control-label">订单范围：</label>
					<div class="controls control-row-auto span14 span-width">
						<div class="well well-small">
							<div class="row control-row1">
								<span class="auxiliary-text offset1">
									请选择抽奖范围后点击抽奖
								</span>
							</div>
							<div class="row">
								<div class="control-group span12">
									<label for="" class="control-label">日期范围:<s>*</s></label>
									<div class="controls">
										<span><input type="text" name="start_date" style="width:140px" value="{$start_date|default:""}" class="calendar js-start"> <label>至</label> <input type="text" name="end_date"  style="width:140px" value="{$end_date|default:""}" class="calendar js-end">
										</span>
									</div>
								</div>
								<div class="control-group span9">
									<label for="" class="control-label">订单金额范围:<s>*</s></label>
									<div class="controls">
										<span>
											<input type="text" name="payment" value="{$payment|default:""}" class="bui-select-input" >元以上
										</span>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="control-group span7">
									<label for="" class="control-label">选择交易状态:<s>*</s></label>
									<div class="controls">
										<select name="ordertype">
										<option value="WAIT_SELLER_SEND_GOODS">买家已付款</option>
										<option value="TRADE_FINISHED">交易成功</option>
										</select>
									</div>
								</div>
							</div>
								<div class="control-group span12">
									<label for="" class="control-label">指定商品:</label>
									<div class="controls">
										<span><input type="text" name="numiid" value="{$numiid|default:""}" class="bui-select-input" >填入商品id,不指定请留空
										</span>
									</div>
								</div>
							<div class="row">
							  <div class="form-actions offset3">
								<button type="submit" class="button button-primary">创建导入任务</button>
								<button type="reset" class="button">重置</button>
							  </div>
							</div>
						</div>
					</div>
				</div>
				</div>
			  </form>
			</div>			
			<input type="hidden" class="type" value="{$type|default:0}" />
        </div>
		<div class="row">
		<table cellspacing="0" class="table table-bordered" style="border-top:none">
          <thead>
			  您已创建以下导入任务：
		  </thead>
		  <tbody>
            <tr>
              <th>订单日期</th>
              <th>金额限定</th>
              <th>指定商品</th>
              <th>创建时间</th>
              <th>开始时间</th>
              <th>结束时间</th>
              <th>操作</th>
            </tr>
		  {foreach key=key item=item from=$data}
            <tr class="re{$ctp}{$item.id}">
			  <td>
			  {$item.order_start} - <br />{$item.order_end}
			  </td>
              <td>{$item.payment}</td>
			  <td>{if $item.num_iid==0}不指定{else}<a href="http://item.taobao.com/item.htm?id={$item.num_iid}" target="_blank">{$item.num_iid}</a>{/if}</td>
			  <td>{$item.creat_time}</td>
			  <td>{$item.start_time}</td>
			  <td>{$item.end_time}</td>
			  <td>{if $item.status=='delable'}<a class="button button-mini" href="/?m=Shopadmin&c=Wins&a=leadorder_del&id={$item.id}">删除</a>{else}{$item.status}{/if}</td>
			</tr>
		{/foreach}
          </tbody>
        </table>
		</div>
		-->
</div>